package org.je.refl;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fanyifeng
 */
public class PrimativeWrappers
{
	private static final Map<Class<?>, Class<?>>	map	= new HashMap<Class<?>, Class<?>>();

	static {
		map.put(Boolean.class, boolean.class);
		map.put(Byte.class, byte.class);
		map.put(Character.class, char.class);
		map.put(Short.class, short.class);
		map.put(Integer.class, int.class);
		map.put(Long.class, long.class);
		map.put(Float.class, float.class);
		map.put(Double.class, double.class);
	}

	/**
	 * @param cl
	 * @return primative class
	 */
	public static Class<?> getPrimative(Class<?> cl) {
		return map.get(cl);
	}
}
